package com.moss.web;

import com.moss.common.domain.AjaxResult;
import com.moss.common.entity.SysItemEntity;
import com.moss.system.service.ItemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("item")
public class ItemController {


    @Resource
    ItemService itemService;


    @GetMapping("/list")
    public AjaxResult<List<SysItemEntity>> listItem(SysItemEntity item){
        List<SysItemEntity> list = itemService.listItem(item);
        return AjaxResult.success(list);
    }



}
